/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package othello.logic;

import java.awt.Point;

/**
 *
 * @author sa11
 * Den mänskliga spelaren, hämtar drag ifrån MoveQueue
 */
public class Human extends Player {

    MoveQueue moveq = new MoveQueue();

    @Override
    public Point getMove(GameGrid gamegrid) {
        Point move = null;
        try {
            move = moveq.getMove(gamegrid.getValidMoves(this.getID()));
        } catch (InterruptedException ex) {
            System.out.println("Something went wrong. Error: "+ex);
        }
        return move;
    }
}
